package cn.itsource.hrm.feignclients;

import cn.itsource.hrm.fallback.PageStaticFeignClientFallbackFactory;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "page-static-server",fallbackFactory = PageStaticFeignClientFallbackFactory.class)//写远程调用的服务名
public interface PageStaticFeignClient {
    //写上要调用的远程的方法，不要方法体
    @RequestMapping(value="/pager/static",method= RequestMethod.POST)
    public AjaxResult pageStatic(@RequestParam("pageName") String pageName,
                                 @RequestParam("redisDataKey") String redisDataKey);
}
